import requests

from commom.get_token_util import get_token_util


def get_empId_util():
    resp = requests.get(url="http://ihrm-java.itheima.net/api/company/department",
                        headers={"Authorization": get_token_util()})
    emp_id = resp.json().get("data").get("depts")[1].get("id")

    return emp_id


if __name__ == '__main__':
    print(get_empId_util())
